<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>吉车惠后台管理系统</title>
	<%@include file="/global/global-other.jsp" %>
	<script type="text/javascript">
		$(function() {
			submitForm = function($dialog,$grid){
				$('#an_car_form').form('submit',{
					url:'${ctx}/an/feed/update',
					queryParams:{_m:'exec'},
					onSubmit:function(){
						if($(this).form('enableValidation').form('validate')){
							return true;
						}else{
							return false;
						}
					},
					success:function(data){
						var json =  eval("(" +data+ ")");
						var isAccept = $("#isAccept").combobox('getValue');
						if(isAccept==""){
							$.messager.alert("提示","请选择是否采纳！","error");
							return ;
						}
						var replyContent = document.getElementById("replyContent").value;
						if(replyContent==""){
							$.messager.alert("提示","请输入回复内容！","error");
							return ;
						}
						if(statusMsg(json)){
							$.messager.alert("提示","保存成功！","info",function(){
								$dialog.dialog('destroy');
								$grid.datagrid('reload');
							});
						}
					}
				});
			};
		});

	</script>
	</head>
<body id="body">
<div class="form-box">
	<div class="form-body">
		<form role="form" name="an_car_form" id="an_car_form" class="easyui-form form form-horizontal" data-options="novalidate:true" method="post">
			<div class="seg-title">
				<div class="seg-title-box">
					<ul>
						<li class="seg-title-box-icon" ><img src="${ctx }/assets/images/communication.gif"/></li>
						<li class="seg-title-box-text">基本信息</li>
						<input type="hidden" id="id" name="id" value="${anFeedBackEntity.id}">
						<input type="hidden" id="appUserId" name="appUserId" value="${anFeedBackEntity.appUserId}">
					</ul>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">APP用户：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="phone" name="phone" value="${anFeedBackEntity.phone}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" disabled="disabled">
				</div>
				<label class="col-sm-2 control-label">
					<p class="label-txt">反馈时间：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="backAt" name="backAt" value="${anFeedBackEntity.backAt}" class="form-control easyui-datebox" data-options="editable:false" style="width:100%;height:34px;line-height:34px;" disabled="disabled">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">反馈内容：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-8">
					<textarea id="backContent" name="backContent" class="autosize form-control" validType="length[1,50]" readonly="readonly">${anFeedBackEntity.backContent}</textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">是否采纳：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="isAccept" name="isAccept" value="" class="form-control easyui-combobox" validType="length[1,20]" style="width:100%;height:34px;line-height:34px;" data-options="
                    valueField: 'label',
                    textField: 'value',
                    data: [{
                        label: '2',
                        value: '否'
                    },{
                        label: '1',
                        value: '是'
                    }
                    ],editable:false" >
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">回复内容：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-8">
					<textarea id="replyContent" name="replyContent" class="autosize form-control" validType="length[1,50]"></textarea>
				</div>
			</div>
		</form>
	</div>
</div>
</body>
</html>